import http from '@/utils/https.js'
export const Regiest = (userinfo) => {
  return http.post(`/api/regest`, userinfo).then(res => res.data)
}
export const Login = (userinfo) => {
  return http.post(`/api/login`, userinfo).then(res => res.data)
}

export const HeadPicture = (formData) => {
  return http.post(`/my/headPicture`, formData, {
    'Content-Type': 'multipart/form-data',
  }).then(res => res.data)
}
export const getHeadPicture = () => {
  return http.get(`/my/getheadPicture`).then(res => res.data)
}
export const getDoorImg = () => {
  return http.get(`/my/getDoorImg`).then(res => res.data)
}
export const changePassword = (param) => {
  return http.post(`/my/changePassword`, param).then(res => res.data)
}
export const changeBgImg = (formData) => {
  return http.post(`/my/changeBgImg`, formData, {
    'Content-Type': 'multipart/form-data',
  }).then(res => res.data)
}